import axios from '../utils/request'

// 账号管理列表
export const accountListApi = (params) => {
  return axios.get("auth/admin", { params });
}
// 菜单权限数据
export const menuDataApi = () => {
  return axios.get("user/getmenu");
}
// 权限修改
export const permissionApi = (data) => {
  return axios.post("user/setmenu", data);
}

// 菜单权限列表
export const menuListApi = (params) => {
  return axios.get("menu/list", { params });
}
// 菜单权限下拉列表
export const menuSelectApi = () => {
  return axios.get("menu/selectlist");
}
// 用户信息修改
export const userEditApi = (data) => {
  return axios.post("update/user", data);
}
// 用户菜单权限
export const userMenuApi = () => {
  return axios.get("menu/permissions");
}